﻿@model MVC4_Test.Models.LoginModel

@{
    ViewBag.Title = "Login";
}

    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
    <script src="//cdn.sstatic.net/Js/stub.en.js?v=870bf30df33b"></script>


    <script src="//cdn.sstatic.net/Js/openid.en.js?v=205f1208bf3f"></script>


    <script>
        StackExchange.init({ "locale": "en", "stackAuthUrl": "https://stackauth.com", "serverTime": 1395141006, "networkMetaHostname": "meta.stackoverflow.com", "styleCode": true, "enableUserHovercards": true, "site": { "name": "Stack Overflow", "description": "Q&A for professional and enthusiast programmers", "isNoticesTabEnabled": true, "recaptchaPublicKey": "6LdchgIAAAAAAJwGpIzRQSOFaO0pU6s44Xt8aTwc", "recaptchaAudioLang": "en", "nonAsciiTags": true, "enableSocialMediaInSharePopup": true }, "user": { "fkey": "04521bf37b0499c57045dba90eff6e15", "isAnonymous": true, "ab": { "welcome_email": { "v": "2", "g": 2}}} });
        StackExchange.using.setCacheBreakers({ "js/prettify-full.en.js": "e0bbd4760e83", "js/moderator.en.js": "a4652408793c", "js/full-anon.en.js": "d647ad2a8bac", "js/full.en.js": "f7fb935566c8", "js/wmd.en.js": "21adc133fffc", "js/third-party/jquery.autocomplete.min.js": "e5f01e97f7c3", "js/third-party/jquery.autocomplete.min.en.js": "", "js/mobile.en.js": "8b7426c9c15b", "js/help.en.js": "d3cc74d8a93a", "js/tageditor.en.js": "6d51a5f8d7f3", "js/tageditornew.en.js": "c07369f4aaed", "js/inline-tag-editing.en.js": "f951bd09dc69", "js/revisions.en.js": "33fd38144303", "js/review.en.js": "dcd566e91a71", "js/tagsuggestions.en.js": "e4e7b952fcc7", "js/post-validation.en.js": "e64adf5ca516", "js/explore-qlist.en.js": "73825bd006fc", "js/events.en.js": "d419f8e951d1" });
        StackExchange.using("gps", function () {
            StackExchange.gps.init(true);
        });
        
    </script>
    
        <script>
            StackExchange.ready(function () {
                $('#nav-tour').click(function () {
                    StackExchange.using("gps", function () {
                        StackExchange.gps.track("aboutpage.click", { aboutclick_location: "headermain" }, true);
                    });
                });
            });
        </script>

        

        <div id="content">
            
<div id="mainbar-full" class="login-page" data-login="true">
    <div class="subheader">
        <div id="tabs" style="float: left;">
            <a href="/account/login" title="Log in to Stack Overflow" class="youarehere">Log in</a>
            <a href="/account/register" title="Sign up to Stack Overflow">Sign up</a>
        </div>
    </div>
    <div>
            <h2 class="title">Log in using any of the following services:</h2>
            <div id="openid-buttons">

            @Html.Action("ExternalLoginsList", new { ReturnUrl = ViewBag.ReturnUrl })
            @*
                    <div class="preferred-login google-login"
                        data-provider='google' data-url='https://www.google.com/accounts/o8/id'>
                        <p>
                            <span class="icon" style="background-position: 0px 0px; "></span>
                            <span>Log in using Google</span>
                        </p>
                    </div>
                    <div class="preferred-login facebook-login"
                        data-provider='facebook' data-oauthserver='https://www.facebook.com/dialog/oauth' data-oauthversion='2.0'>
                        <p>
                            <span class="icon" style="background-position: -18px 0px; "></span>
                            <span>Log in using Facebook</span>
                        </p>
                    </div>
                    *@
            </div>
            <div id="se-login" class="preferred-login">
                <a href="/account/account-recovery" id="forgot-password">forgot password</a>
                <form id="se-login-form" action="/account/login" method="POST">
                    <input type="hidden" name="fkey" value="04521bf37b0499c57045dba90eff6e15">

                    <div id="se-signup-legend">
                        <p>
                            <span class="icon stackexchange-signup"></span>
                            <span>Log in using Stack Exchange</span>
                        </p>
                    </div>
                    <div class="form-bottom">
                        <div>
                            <input name="email" placeholder="Email" type="email" size="30" maxlength="100" />
                        </div>
                        <div><input name="password" placeholder="Password" type="password" value="" /></div>

                        <div class="form-submit cbt">
                            <input id="submit-button" name="submit-button" type="button" value="Log In" />
                            <a href="/account/account-recovery">forgot password</a>
                        </div>
                    </div>
                </form>
            </div>
            <a id="more-options-link">More login options</a>
            <form id="openid_form" action="/account/authenticate" method="POST">
                <input type="hidden" name="fkey" value="04521bf37b0499c57045dba90eff6e15">
                
                <input type="hidden" id="oauth_version" name="oauth_version">
                <input type="hidden" id="oauth_server" name="oauth_server">
                <div>
                    <noscript>
                        <p>
                            Open ID is a service that allows you to log on to many different websites using a single identity. Find out <a href="http://openid.net/what/">more about OpenId</a> and <a href="http://openid.net/get/">how to get an OpenID-enabled account</a>.
                        </p>
                    </noscript>
                </div>
                <div id="show-more-options">
                    <div id="more-openid-options" class="script-only">
                            <a title="Login with Yahoo" href="javascript:openid.signin($('#more-openid-options a.yahoo'));"
                                data-provider='yahoo' data-url='https://yahoo.com/'
                               style="background-position: -27px -300px"
                               class="yahoo openid_small_btn"></a>
                            <a title="Login with LiveJournal" href="javascript:openid.signin($('#more-openid-options a.livejournal'));"
                                data-provider='livejournal' data-label='Enter your LiveJournal username' data-url='http://{username}.livejournal.com/'
                               style="background-position: -1px -352px"
                               class="livejournal openid_small_btn"></a>
                            <a title="Login with WordPress" href="javascript:openid.signin($('#more-openid-options a.wordpress'));"
                                data-provider='wordpress' data-label='Enter your WordPress username' data-url='https://{username}.wordpress.com/'
                               style="background-position: -1px -404px"
                               class="wordpress openid_small_btn"></a>
                            <a title="Login with Blogger" href="javascript:openid.signin($('#more-openid-options a.blogger'));"
                                data-provider='blogger' data-label='Enter your Blogger username' data-url='https://{username}.blogspot.com/'
                               style="background-position: -1px -249px"
                               class="blogger openid_small_btn"></a>
                            <a title="Login with Verisign" href="javascript:openid.signin($('#more-openid-options a.verisign'));"
                                data-provider='verisign' data-label='Enter your Verisign username' data-url='https://{username}.pip.verisignlabs.com/'
                               style="background-position: -1px -378px"
                               class="verisign openid_small_btn"></a>
                            <a title="Login with Google Profile" href="javascript:openid.signin($('#more-openid-options a.google_profile'));"
                                data-provider='google_profile' data-label='Enter your Google Profile username' data-url='https://profiles.google.com/{username}'
                               style="background-position: -1px -300px"
                               class="google_profile openid_small_btn"></a>
                            <a title="Login with AOL" href="javascript:openid.signin($('#more-openid-options a.aol'));"
                                data-provider='aol' data-label='Enter your AOL username' data-url='https://openid.aol.com/{username}'
                               style="background-position: -27px -249px"
                               class="aol openid_small_btn"></a>
                    </div>
                    <div id="simple-openid-selector">
                        <div id="openid_input_area" class="script-only">
                            <p id="openid_provider_label"></p>
                            <input id="openid_username" type="text" name="openid_username" value="">
                            <input id="openid_submit" type="submit" value="Log In">
                        </div>
                        <div id="openid-url-input-area">
                            <noscript>
                                <p class="noscript-notice">Because JavaScript is disabled, you can only log in by entering your OpenID URL manually:</p>
                            </noscript>
                            <div class="vt large">
                                <input id="openid_identifier" name="openid_identifier" placeholder="Or, you can manually enter your OpenId" class="openid-identifier" style="height: 28px; width: 500px;" type="text" />
                                <input id="submit-button" name="submit-button" type="submit" value="Submit" />
                            </div>
                        </div>
                    </div>         
                </div>
            </form>
    </div>
</div>
<script>
    $(function () {
        openid.init(/* isSignupPage */false, /* isLoginPage */true, /* isAddLoginPage */false, /* isPasswordPage */false, /* needsCaptcha */false);

        StackExchange.using("gps", function () { StackExchange.gps.sendPending(); });

    });
</script>
<style type="text/css">
.stackexchange-signup {
    background-image: url('/Content/img/openid/new-login-sprite.png?ver=1');
    width: 16px;
    height: 16px;
    vertical-align: middle;
    display: inline-block;
    background-position: -38px 0px;
}

#forgot-password {
    position: absolute;
    margin-left: 285px;
}

.login-page #openid-url-input {
    margin-left: 0;
}

.login-page {
    min-height: 620px;
}

.login-page .script-only { display: block; }

.login-page #openid-buttons {
    margin-left: 0;
}

.login-page .openid_small_btn {
    -webkit-border-radius: 0;
    border-radius: 0;
    -webkit-box-shadow: 0 0 0;
    box-shadow: 0 0 0;
}

#show-more-options {
    margin-top: 15px;
}

#more-openid-options {
    margin-top: 15px;
}

#more-openid-options a {
    background: #ccc url('/Content/img/openid/openid-logos.png?v=9'); 
}

#se-login {
    height: auto;
}

#se-login .form-bottom {
    cursor: default;
}

#se-login .form-bottom > div > input {
    width: 250px;
}

#se-login div.form-submit > input {
    width: auto;
} 

.login-page .openid_small_btn:hover {
    margin: 3px;
    border: 2px solid #999;
    box-shadow: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
}

.login-page #more-openid-options a.openid_highlight {
    padding: 0;
    background-color: #ffffff;
    border: 2px solid #999;
}

.login-page #openid-url-input-area, #openid-url-input-area input {
    margin-top: 10px;
}

.login-page #openid_input_area {
    margin-bottom: 0;
    margin-left: 0;
}
</style>

        </div>
    </div>
    



@*
  
<hgroup class="title">
    <h1>@ViewBag.Title.</h1>
</hgroup>

<section id="loginForm">
<h2>Use a local account to log in.</h2>
@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl })) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Log in Form</legend>
        <ol>
            <li>
                @Html.LabelFor(m => m.UserName)
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </li>
            <li>
                @Html.LabelFor(m => m.Password)
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </li>
            <li>
                @Html.CheckBoxFor(m => m.RememberMe)
                @Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" })
            </li>
        </ol>
        <input type="submit" value="Log in" />
    </fieldset>
    <p>
        @Html.ActionLink("Register", "Register") if you don't have an account.
    </p>
}
</section>

<section class="social" id="socialLoginForm">
    <h2>Use another service to log in.</h2>
    @Html.Action("ExternalLoginsList", new { ReturnUrl = ViewBag.ReturnUrl })
</section>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
*@